﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


namespace AveitWeb
{
    public partial class AVEITweb : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string pagina = Request.Url.Segments[1];
            switch (pagina)
            {
                case "Home.aspx":
                    LiHome.Attributes.Add("class", "active");
                    break;
                case "About.aspx":
                    LiAbout.Attributes.Add("class", "active");
                    break;
                case "Blog.aspx":
                    LiBlog.Attributes.Add("class", "active");
                    break;
                case "Login.aspx":
                    
                    LiLogin.Attributes.Add("class", "active");
                    break;
                case "Contacto.aspx":
                    LiContacto.Attributes.Add("class", "active");
                    break;
                default:
                    LiHome.Attributes.Add("class", "active");
                    break;
            }

            liCantidadDeUsuariosConectados.Text = String.Format("Cantidad De Usuarios Conectados: {0}", Application["CantidadUsuarios"]);

        }
    }
}